﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using MN.Framework.Common;
using Newtonsoft.Json;

namespace EmailSender.Models
{
    [Table("Category")]
    public class CategoryModel : BaseEntity
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        [Column("CatId")]
        public override int ID { get; set; }

        [Display(Name = "عنوان دسته")]
        public string CatTitle { get; set; }

        [Display(Name = "کد دسته")]
        public string CatCode { get; set; }

        [JsonIgnore]
        public virtual ICollection<EmailCategoryModel> EmailCategory { get; set; }
    }
}